package com.example.lt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.lt.pojo.entity.UserSupport;
import com.example.lt.result.Result;

/**
 * @Author 小涛Tao
 * @Date: 2024/06/04/14:22
 * version 1.0 注释：
 **/
public interface UserSupportService extends IService<UserSupport> {

    /**
     * 检查当前用户是否点赞了当前评论
     * @param userSupport
     * @return
     */
    Result checkSupport(UserSupport userSupport);

    /**
     * 删除当前用户对当前评论的点赞
     * @param userSupport
     * @return
     */
    Result delete(UserSupport userSupport);

    /**
     * 根据评论id删除点赞表中的记录
     * @param commentId
     */
    void deleteByComId(Integer commentId);

    /**
     * 添加当前用户对当前评论的点赞
     * @param userSupport
     * @return
     */
    Result insert(UserSupport userSupport);

}
